import { createApp } from 'vue'
import App from '@/App.vue'
// 引入element-plus组件库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import globalComponent from '@/components'
import 'virtual:svg-icons-register'
// 引入模板样式
import '@/styles/index.scss'
import router from './router'
import pinia from './store'

// 获取App实例
const app = createApp(App)
// 引入自定义插件对象，注册全局组件
app.use(globalComponent)
app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')
